<script setup>
import Title from '@/components/title.vue';
import barEchart from '@/components/echart/bar-echart.vue';
import dataStatistics from '../../echart/data-statistics/index.vue'
import pieEchart from '@/components/echart/pie-echart.vue';
import levelBar from '@/components/echart/level-bar.vue';
</script>

<template>
    <div class="page">
        <div class="top">
            <Title title="安防概况"></Title>
            <dataStatistics class="top-echart"></dataStatistics>
        </div>
        <div class="mid">
            <Title title="摄像头视频监控"></Title>
            <barEchart></barEchart>
        </div>
        <div class="pie-echart">
            <Title title="摄像头视频监控"></Title>
            <pieEchart></pieEchart>
        </div>
        <div class="bottom">
            <Title title="摄像头视频监控"></Title>
            <levelBar></levelBar>
        </div>
    </div>
</template>

<style scoped lang="scss">
.page {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
    margin-left: 20px;
    font-size: 20rem;

    .top {
        margin-bottom: 5px;

        flex: 0 0 23%;
        box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);

        .top-echart {
            transform: translate(-10%, -10%);
        }
    }

    .mid {
        flex: 0 0 23%;
        box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
        margin-bottom: 10px;

    }

    .pie-echart {
        flex: 0 0 23%;
        box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
        margin-bottom: 10px;
    }

    .bottom {
        flex: 0 0 23%;
        box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);


    }


}
</style>
